<html>
<head><meta charset="utf-8"><title>Why doesn&#x27;t PerNS implement iterator? · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Why.20doesn&#x27;t.20PerNS.20implement.20iterator.3F.html">Why doesn&#x27;t PerNS implement iterator?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="203467685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Why%20doesn%27t%20PerNS%20implement%20iterator%3F/near/203467685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Why.20doesn&#x27;t.20PerNS.20implement.20iterator.3F.html#203467685">(Jul 10 2020 at 04:08)</a>:</h4>
<p>I know there's a <code>present_items()</code> that's there only for <code>Option</code>. Is there a reason that there isn't a generic Iterator implementation for any T? I would expect it to iterate over the three <code>T</code> values it stores, regardless of their values.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>